<template>
  <div>
    <van-cell-group
      inset
      title="姓名"
    >
      <van-field
        id="name"
        v-model="name"
        :value="formData.realname"
        :border="true"
        disabled
      />
    </van-cell-group>

    <van-cell-group
      inset
      title="会员号"
    >
      <van-field
        id="lntsno"
        v-model="lntsno"
        :value="formData.lntsno"
        :border="true"
        disabled
      />
    </van-cell-group>

    <van-cell-group
      inset
      title="年票号"
    >
      <van-field
        id="year"
        v-model="year"
        :value="formData.ticketno"
        :border="false"
        disabled
      />
    </van-cell-group>
    <div class="status">状态：{{formData.text}}</div>
  </div>
</template>

<script>
export default {
  components: {
  },
  props: {
    formData: {
      type: Object,
      default: null
    }
  },
  data () {
    return {

    }
  },
  onLoad () {
    Object.assign(this.$data, this.$options.data())
    console.log(this.formData)
  },
  onShow () {
    this.onLoadData()
  },
  methods: {
    onLoadData () {

    }

  }
}
</script>

<style lang="less">
.btn-commit {
  padding: 20px 10px;
}
.status {
  margin: 10px;
  font-size: 16px;
  color: red;
}
</style>
